<template>
    <my-bar>
        <template v-slot:two>
            <a href="">{{name}}</a>
        </template>
    </my-bar>
    <my-bar>
        <template v-slot:one>
            <a href="">提交</a>
        </template>
        <template v-slot:default="subdata">
            <a href="">{{subdata.user.name}}</a>
        </template>
    </my-bar>
    <my-bar>
    </my-bar>
</template>

<script>
    import MyBar from "./chlidsComp/MyBar";

    export default {
        name: "MySidbar",
        data() {
            return {
                name: 'hello'
            }
        },
        components: {
            MyBar
        }
    }
</script>

<style scoped>

</style>